<?php

session_start();
require_once "person.php";

$person = new person();

$person->setage(21);
$_SESSION['person'] = $person;
echo "check here to output age";